/**
 * 郭楠project
 * com.gn.micblog.dao
 * AdminUser.java
 * 创建人:TonyGuo 
 * 时间：2016年6月5日-上午10:37:34 
 * 2016Tm公司-版权所有
 */
package com.gn.entity;

import java.io.Serializable;

import javax.persistence.Entity;

import org.springframework.beans.factory.annotation.Value;

/**
 * 
 * AdminUser
 * 创建人:TonyGuo
 * 时间：2016年6月5日-上午10:37:34 
 * @version 1.0.0
 * 
 */
public class AdminUser implements Serializable{
	 /**
	 * serialVersionUID:TODO（用一句话描述这个变量表示什么）
	 * @since 1.0.0
	 */
	 private static final long serialVersionUID = 8390065854030744152L;
	
	 private String userid;
	 private String username;
	 private String userpassword;
	 
	 /**
	  * 0:人妖，1:男性，2：女性
	  * */
	// private String usersex="0";
	 
	 /**
	  * 创建用户的时间
	  * */
	 private String loginDate;
	 
	 /**
	  * 创建用户的时间
	  * */
	 private String usercreatedate;
	 
	 /**
	  *'用户状态，0：普通用户，1明星用户'
	  */
	 private Integer state=0;
	 
	 /**
	  * 昵称
	  */
	 private String usernick;
	 
	 /**
	  * 用户头像
	  */
	 private String userPic;
	 
	 /**
	  * 用户所在位置
	  */
	// private String position;
	 
	 /**
	  * 
	  * 是否开启用户评论
	  */
	 private Integer openUserComment;
	 
	 /**
	  * 
	  * 是否开启用户留言
	  */
	 private Integer openUserMessage;
	 
	 
	
	public AdminUser() {
	}
	
	
	/**
	 * 创建一个新的实例 AdminUser.
	 */
	public AdminUser(String userid, String username, String userpassword,
			String usersex, String loginDate, String usercreatedate,
			Integer state, String usernick, String userPic, String position) {
		super();
		this.userid = userid;
		this.username = username;
		this.userpassword = userpassword;
		this.loginDate = loginDate;
		this.usercreatedate = usercreatedate;
		this.state = state;
		this.usernick = usernick;
		this.userPic = userPic;
	}

	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	
	
	/**
	 * userPic
	 *
	 * @return  the userPic
	 * @since   1.0.0
	 */
	
	public String getUserPic() {
		return userPic;
	}
	/**
	 * @param userPic the userPic to set
	 */
	public void setUserPic(String userPic) {
		this.userPic = userPic;
	}
	/**
	 * loginDate
	 *
	 * @return  the loginDate
	 * @since   1.0.0
	 */
	
	public String getLoginDate() {
		return loginDate;
	}
	/**
	 * @param loginDate the loginDate to set
	 */
	public void setLoginDate(String loginDate) {
		this.loginDate = loginDate;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUserpassword() {
		return userpassword;
	}
	public void setUserpassword(String userpassword) {
		this.userpassword = userpassword;
	}
	public String getUsercreatedate() {
		return usercreatedate;
	}
	public void setUsercreatedate(String usercreatedate) {
		this.usercreatedate = usercreatedate;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public String getUsernick() {
		return usernick;
	}
	public void setUsernick(String usernick) {
		this.usernick = usernick;
	}

	/**
	 * openUserComment
	 *
	 * @return  the openUserComment
	 * @since   1.0.0
	 */
	
	public Integer getOpenUserComment() {
		return openUserComment;
	}


	/**
	 * @param openUserComment the openUserComment to set
	 */
	public void setOpenUserComment(Integer openUserComment) {
		this.openUserComment = openUserComment;
	}


	/**
	 * openUserMessage
	 *
	 * @return  the openUserMessage
	 * @since   1.0.0
	 */
	
	public Integer getOpenUserMessage() {
		return openUserMessage;
	}


	/**
	 * @param openUserMessage the openUserMessage to set
	 */
	public void setOpenUserMessage(Integer openUserMessage) {
		this.openUserMessage = openUserMessage;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "AdminUser [userid=" + userid + ", username=" + username
				+ ", userpassword=" + userpassword + ", loginDate=" + loginDate
				+ ", usercreatedate=" + usercreatedate + ", state=" + state
				+ ", usernick=" + usernick + ", userPic=" + userPic
				+ ", openUserComment=" + openUserComment + ", openUserMessage="
				+ openUserMessage + "]";
	}


	 
	
	 
	 
}
